<template>
  <div class="inner-wrapper login-body">
    <div class="login-wrapper">
      <div class="container">
        <div class="loginbox shadow-sm">
          <div class="login-left">
<!--            <img class="img-fluid" src="../assets/img/logo.png" alt="Logo">-->
          </div>
          <div class="login-right">
            <div class="login-right-wrap">
              <h1>登录</h1>
              <p class="account-subtitle">欢迎使用星云管理系统</p>

              <!-- Form -->
              <form action="index.html">
                <div class="form-group">
                  <input class="form-control" type="text" placeholder="Email">
                </div>
                <div class="form-group">
                  <input class="form-control" type="text" placeholder="Password">
                </div>
                <div class="form-group">
                  <button class="btn btn-theme button-1 text-white ctm-border-radius btn-block" type="submit" @click="login()">点击登录
                  </button>
                </div>
              </form>
              <!-- /Form -->

              <div class="text-center forgotpass"><a
                href="http://dreamguys.co.in/demo/dleohr/dleohr/forgot-password.html">忘记密码?</a></div>
              <div class="login-or">
                <span class="or-line"></span>
                <span class="span-or">or</span>
              </div>

              <!-- Social Login -->
<!--              <div class="social-login">-->
<!--                <span>Login with</span>-->
<!--                <a href="javascript:void(0)" class="facebook"><i class="fa fa-facebook"></i></a><a-->
<!--                href="javascript:void(0)" class="google"><i class="fa fa-google"></i></a>-->
<!--              </div>-->
              <!-- /Social Login -->

              <div class="text-center dont-have">还没有账户? <a
                href="http://dreamguys.co.in/demo/dleohr/dleohr/register.html">点击注册</a></div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import axios from "axios";

export default {
  name: "Login",
  data() {
    return {
      email: '',
      password: '',
    }
  },
  methods:{
    login: function () {
      // axios.post('http://localhost:8000/user/login',{
      //   email: this.email,
      //   pass: this.password,
      // }).then(function (response) {
      //   console.log(response);
      // }).catch(function (error) {
      //   console.log(error);
      // })
      this.$router.push({path: '/nebula/dashboard'});
      //页面刷新
      window.location.reload();
    }
  }
}
</script>

<style scoped>

</style>
